import request from '@/utils/myrequest'
// 初始化列表
function getHAREqpList(kvs) {
  return request({
    url: 'tms/SocketAssign/GetHAREqpList',
    method: 'get',
    kvs
  })
}
// 根据设备名称获取Socket列表
function getSocketList(kvs) {
  return request({
    url: 'mtms/ToolingBasicInfo/GetSocketList',
    method: 'get',
    kvs
  })
}
// 设备下site所有scoket信息
function getAllSiteSocketList(kvs) {
  return request({
    url: '/mtms/ToolingBasicInfo/GetAllSiteSocketList',
    method: 'get',
    kvs
  })
}
// 根据设备名称获取Socket列表大小
function getSocketListSize(kvs) {
  return request({
    url: 'tms/SocketAssign/GetSocketListSize',
    method: 'get',
    kvs
  })
}
// 更换指定Socket
function doAssign(kvs) {
  return request({
    url: '/tms/SocketAssign/SocketAssign',
    method: 'POST',
    kvs
  })
}
function doAssignBackups(kvs) {
  return request({
    url: '/mtms/ToolingBasicInfo/ToolingSocketAssign',
    method: 'POST',
    kvs
  })
}
export default{
  getHAREqpList,
  getSocketList,
  getAllSiteSocketList,
  getSocketListSize,
  doAssign,
  doAssignBackups
}
